package name.yzhu.httpserver;

/**
 * Created by yhzhu on 2014-4-8.
 */
public class HttpServerResponseException extends Exception{
    /**
	 * 
	 */
	private static final long serialVersionUID = 9127040665363119880L;
	
	protected int code;
    public HttpServerResponseException() {
    }

    public HttpServerResponseException(int code, String message) {
        super(message);
        this.code = code;
    }

    public HttpServerResponseException(int code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public HttpServerResponseException(int code,Throwable cause) {
        super(cause);
        this.code = code;
    }

	public int getCode() {
        return code;
    }
}
